.class Lcom/xingbook/park/activity/ar;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/xingbook/park/activity/OpenBookAct;

.field private final synthetic b:Z

.field private final synthetic c:Lcom/xingbook/c/n;

.field private final synthetic d:Landroid/content/Intent;

.field private final synthetic e:Z


# direct methods
.method constructor <init>(Lcom/xingbook/park/activity/OpenBookAct;ZLcom/xingbook/c/n;Landroid/content/Intent;Z)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    iput-boolean p2, p0, Lcom/xingbook/park/activity/ar;->b:Z

    iput-object p3, p0, Lcom/xingbook/park/activity/ar;->c:Lcom/xingbook/c/n;

    iput-object p4, p0, Lcom/xingbook/park/activity/ar;->d:Landroid/content/Intent;

    iput-boolean p5, p0, Lcom/xingbook/park/activity/ar;->e:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/park/activity/ar;)Lcom/xingbook/park/activity/OpenBookAct;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    return-object v0
.end method


# virtual methods
.method public run()V
    .locals 8

    const/4 v7, 0x4

    const/4 v6, 0x0

    const/4 v1, -0x1

    iget-object v0, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    invoke-static {v0}, Lcom/xingbook/park/activity/OpenBookAct;->c(Lcom/xingbook/park/activity/OpenBookAct;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;

    move-result-object v2

    iget-boolean v0, p0, Lcom/xingbook/park/activity/ar;->b:Z

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/park/activity/ar;->c:Lcom/xingbook/c/n;

    invoke-virtual {v0}, Lcom/xingbook/c/n;->h()Lcom/xingbook/d/a;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/activity/ar;->d:Landroid/content/Intent;

    const-string v3, "com.xingbook.park.EXTRA_ECLOUDBOOKID"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_2

    new-instance v3, Lcom/xingbook/xingbook/b/c;

    const-string v4, ""

    invoke-direct {v3, v1, v4}, Lcom/xingbook/xingbook/b/c;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v4, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    invoke-virtual {v4}, Lcom/xingbook/park/activity/OpenBookAct;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v4

    iget-object v4, v4, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

    invoke-virtual {v0, v3, v4}, Lcom/xingbook/d/a;->a(Lcom/xingbook/xingbook/b/c;Ljava/util/Locale;)I

    move-result v3

    if-nez v3, :cond_1

    sget-object v3, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v4, Lcom/xingbook/park/activity/as;

    invoke-direct {v4, p0, v1}, Lcom/xingbook/park/activity/as;-><init>(Lcom/xingbook/park/activity/ar;Ljava/lang/String;)V

    invoke-interface {v3, v4}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/ar;->c:Lcom/xingbook/c/n;

    iget-object v3, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    invoke-virtual {v1, v3}, Lcom/xingbook/c/n;->h(Landroid/app/Activity;)Lcom/xingbook/c/e;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-virtual {v0}, Lcom/xingbook/d/a;->q()Lcn/a/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcn/a/a/a;->h()Lcn/a/a/i;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/activity/ar;->c:Lcom/xingbook/c/n;

    iget-object v3, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    invoke-virtual {v1, v3}, Lcom/xingbook/c/n;->h(Landroid/app/Activity;)Lcom/xingbook/c/e;

    move-result-object v1

    iget v3, v0, Lcn/a/a/i;->a:I

    iget v4, v0, Lcn/a/a/i;->b:I

    invoke-virtual {v0}, Lcn/a/a/i;->a()I

    move-result v5

    invoke-virtual {v1, v3, v4, v5}, Lcom/xingbook/c/e;->a(III)Z

    invoke-virtual {v0}, Lcn/a/a/i;->k()I

    move-result v0

    invoke-static {v0}, Lcom/xingbook/c/e;->b(I)V

    :cond_0
    iput v6, v2, Landroid/os/Message;->what:I

    :goto_0
    invoke-virtual {v2}, Landroid/os/Message;->sendToTarget()V

    return-void

    :cond_1
    iput v7, v2, Landroid/os/Message;->what:I

    iput v3, v2, Landroid/os/Message;->arg1:I

    goto :goto_0

    :cond_2
    const/4 v0, 0x6

    iput v0, v2, Landroid/os/Message;->what:I

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    invoke-static {v0}, Lcom/xingbook/park/activity/OpenBookAct;->b(Lcom/xingbook/park/activity/OpenBookAct;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_b

    const-string v0, ""

    iget-object v3, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    invoke-static {v3}, Lcom/xingbook/park/activity/OpenBookAct;->b(Lcom/xingbook/park/activity/OpenBookAct;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_b

    iget-object v0, p0, Lcom/xingbook/park/activity/ar;->c:Lcom/xingbook/c/n;

    invoke-virtual {v0}, Lcom/xingbook/c/n;->g()Lcom/xingbook/park/d/e;

    move-result-object v0

    iget-object v3, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    invoke-static {v3}, Lcom/xingbook/park/activity/OpenBookAct;->b(Lcom/xingbook/park/activity/OpenBookAct;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/xingbook/park/d/e;->d(Ljava/lang/String;)Lcom/xingbook/xingbook/b/c;

    move-result-object v3

    if-eqz v3, :cond_9

    invoke-virtual {v3}, Lcom/xingbook/xingbook/b/c;->a()Z

    move-result v4

    if-eqz v4, :cond_8

    invoke-virtual {v0, v3}, Lcom/xingbook/park/d/e;->b(Lcom/xingbook/xingbook/b/c;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/ar;->c:Lcom/xingbook/c/n;

    invoke-virtual {v0}, Lcom/xingbook/c/n;->h()Lcom/xingbook/d/a;

    move-result-object v4

    iget-object v0, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    invoke-static {v0}, Lcom/xingbook/park/activity/OpenBookAct;->a(Lcom/xingbook/park/activity/OpenBookAct;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_c

    iget-object v0, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    invoke-static {v0}, Lcom/xingbook/park/activity/OpenBookAct;->a(Lcom/xingbook/park/activity/OpenBookAct;)Ljava/lang/String;

    move-result-object v0

    const/16 v5, 0x2c

    invoke-virtual {v0, v5}, Ljava/lang/String;->indexOf(I)I

    move-result v0

    if-le v0, v1, :cond_4

    iget-object v5, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    invoke-static {v5}, Lcom/xingbook/park/activity/OpenBookAct;->a(Lcom/xingbook/park/activity/OpenBookAct;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5, v6, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v1}, Lcn/a/a/d/j;->a(Ljava/lang/String;I)I

    move-result v0

    :cond_4
    :goto_1
    if-le v0, v1, :cond_6

    invoke-virtual {v4, v3, v0}, Lcom/xingbook/d/a;->a(Lcom/xingbook/xingbook/b/c;I)I

    move-result v0

    :goto_2
    if-nez v0, :cond_7

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/park/activity/at;

    invoke-direct {v1, p0, v3}, Lcom/xingbook/park/activity/at;-><init>(Lcom/xingbook/park/activity/ar;Lcom/xingbook/xingbook/b/c;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/ar;->c:Lcom/xingbook/c/n;

    iget-object v1, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    invoke-virtual {v0, v1}, Lcom/xingbook/c/n;->h(Landroid/app/Activity;)Lcom/xingbook/c/e;

    move-result-object v0

    if-eqz v0, :cond_5

    invoke-virtual {v4}, Lcom/xingbook/d/a;->q()Lcn/a/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcn/a/a/a;->h()Lcn/a/a/i;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/activity/ar;->c:Lcom/xingbook/c/n;

    iget-object v3, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    invoke-virtual {v1, v3}, Lcom/xingbook/c/n;->h(Landroid/app/Activity;)Lcom/xingbook/c/e;

    move-result-object v1

    iget v3, v0, Lcn/a/a/i;->a:I

    iget v4, v0, Lcn/a/a/i;->b:I

    invoke-virtual {v0}, Lcn/a/a/i;->a()I

    move-result v5

    invoke-virtual {v1, v3, v4, v5}, Lcom/xingbook/c/e;->a(III)Z

    invoke-virtual {v0}, Lcn/a/a/i;->k()I

    move-result v0

    invoke-static {v0}, Lcom/xingbook/c/e;->b(I)V

    :cond_5
    iput v6, v2, Landroid/os/Message;->what:I

    goto/16 :goto_0

    :cond_6
    iget-object v0, p0, Lcom/xingbook/park/activity/ar;->a:Lcom/xingbook/park/activity/OpenBookAct;

    invoke-virtual {v0}, Lcom/xingbook/park/activity/OpenBookAct;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v0

    iget-object v0, v0, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

    invoke-virtual {v4, v3, v0}, Lcom/xingbook/d/a;->a(Lcom/xingbook/xingbook/b/c;Ljava/util/Locale;)I

    move-result v0

    goto :goto_2

    :cond_7
    iput v7, v2, Landroid/os/Message;->what:I

    iput v0, v2, Landroid/os/Message;->arg1:I

    goto/16 :goto_0

    :cond_8
    const/4 v0, 0x3

    iput v0, v2, Landroid/os/Message;->what:I

    goto/16 :goto_0

    :cond_9
    iget-boolean v0, p0, Lcom/xingbook/park/activity/ar;->e:Z

    if-eqz v0, :cond_a

    const/4 v0, 0x5

    :goto_3
    iput v0, v2, Landroid/os/Message;->what:I

    goto/16 :goto_0

    :cond_a
    const/4 v0, 0x2

    goto :goto_3

    :cond_b
    const/4 v0, 0x1

    iput v0, v2, Landroid/os/Message;->what:I

    goto/16 :goto_0

    :cond_c
    move v0, v1

    goto :goto_1
.end method
